
//攻击状态
public class EnemyAttackState : EnemyState
{
    public EnemyAttackState(EnemyFSM manager, string animationName) : base(manager, animationName) { }
    public override void OnEnter()
    {
       base.OnEnter();
       SetVelocity(0, 0);
    }

    public override void OnUpdate()
    {
        base.OnUpdate();
        if (parameter.isHurt)
        {
            manager.TransitionState(StateType.Hit);
        }
        if (PlayComplete())
        {
            manager.TransitionState(StateType.Idle);
        }
    }

    public override void OnFixedUpdate()
    {
        base.OnFixedUpdate();
    }

    public override void OnExit()
    {
        base.OnExit();
    }
}

